﻿using AutoMapper; 
using Framework.Models.Entities;
using Framework.Models.Request;
using Framework.Utility.Dependency; 
namespace Framework.Mapper
{
    public class MapperProfile : Profile, IProfile
    { 
        public MapperProfile() {
  
            //CreateMap<Employee, EmployeeDto>()
            //    .ForMember(d => d.EmployeeDetail, s => s.Ignore())
            //    .ForMember(d => d.EmployeeLogins, s => s.Ignore());
            //CreateMap<EmployeeDto, Employee>()
            //        .ForMember(d => d.EmployeeDetail, s => s.Ignore())
            //        .ForMember(d => d.EmployeeLogins, s => s.Ignore());

            CreateMap<Fw_FlowinstanceRequest, Fw_Flowinstance>().ReverseMap();
            CreateMap<Biz_UserRequest, Biz_User>().ReverseMap();
            CreateMap<Fw_FlowschemeRequest, Fw_Flowscheme>().ReverseMap();
            CreateMap<Biz_LeaveTimeRequest, Biz_LeaveTime>().ReverseMap();
        }
    }
}